﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tecnicas.CasoEstudio.Back.Persistencia;
using System.Collections;

namespace Tecnicas.CasoEstudio.Back.Dominio
{
    public class VideoClub
    {        
        
        public ArrayList Clientes 
        {
            get 
            {
                return new ClienteDataMapper().FindAll();
            }         
        }
        public ArrayList Peliculas
        {
            get
            {
                return new PeliculaDataMapper().FindAll();
            }
        }
        public ArrayList Alquileres
        {
            get
            {
                return new AlquilerDataMapper().FindAll();
            }
        }

        public void AddCliente(Cliente cliente) 
        {
            new ClienteDataMapper().Insert(cliente);
        }
    }
}
